idea 一直scanning files to index的四种解决方法【idea 一直scanning files to index的四种解决方法】 您所在的位置:网站首页 idea一直卡在Design editor idea 一直scanning files to index的四种解决方法【idea 一直scanning files to index的四种解决方法】

idea 一直scanning files to index的四种解决方法【idea 一直scanning files to index的四种解决方法】

2024-01-18 14:32| 来源: 网络整理| 查看: 265

idea 一直scanning files to index的四种解决方法【idea 一直scanning files to index的四种解决方法】 转载

久曲健 2021-11-16 10:09:56 博主文章分类:IntelliJ IDEA

文章标签 ide 重启 配置文件 java 软件测试 文章分类 代码人生

问题描述: 长时间/重复性的scanning files to indexscanning files to index :扫描文件建立索引 方法一、File -> Invalidate Caches / Restart

idea 一直scanning files to index的四种解决方法【idea 一直scanning files to index的四种解决方法】_ide

idea 一直scanning files to index的四种解决方法【idea 一直scanning files to index的四种解决方法】_软件测试_02

方法二、删除C:\Users\xxx.IntelliJIdea2018.2\system文件夹

idea 一直scanning files to index的四种解决方法【idea 一直scanning files to index的四种解决方法】_软件测试_03

方法三、将扫描的文件夹排除在建立索引的范围之外,即将xxx文件夹标记为Excluded。

idea 一直scanning files to index的四种解决方法【idea 一直scanning files to index的四种解决方法】_软件测试_04

方法四、更改Edit Configurations和idea配置路径1、一直扫描很长时间,点击Edit Configurations,update classes and resources更改为Do nothing。

idea 一直scanning files to index的四种解决方法【idea 一直scanning files to index的四种解决方法】_配置文件_05

idea 一直scanning files to index的四种解决方法【idea 一直scanning files to index的四种解决方法】_java_06

2、会发现扫描时间很短,但是还会一直重复扫描3、更改idea配置路径 或 直接注掉三行注释 达到刷新目的

​​xx\bin\idea.properties​​

idea.config.path=D:\Java\idea\IntelliJ IDEA 2018.2.4\01edit\configidea.system.path=D:\Java\idea\IntelliJ IDEA 2018.2.4\01edit\systemidea.plugins.path=D:\Java\idea\IntelliJ IDEA 2018.2.4\01edit\plugins#---------------------------------------------------------------------# Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes.#---------------------------------------------------------------------# idea.config.path=${user.home}/.IntelliJIdea/config#---------------------------------------------------------------------# Uncomment this option if you want to customize path to IDE system folder. Make sure you're using forward slashes.#---------------------------------------------------------------------# idea.system.path=${user.home}/.IntelliJIdea/system#---------------------------------------------------------------------# Uncomment this option if you want to customize path to user installed plugins folder. Make sure you're using forward slashes.#---------------------------------------------------------------------# idea.plugins.path=${idea.config.path}/plugins

过程:

重启idea,重装idea,关机重启,kill idea进程都不好使重新download的代码一样的问题,所以一定是配置的问题配置文件删掉一样不好使,可能是需要刷新加载配置文件不重启的情况下(重启也不一定好用),更改idea配置路径即可起到刷新的效果,或者尝试放开、注掉配置文件,再或者拿同事好用的配置文件直接覆盖...更改完毕后,关闭idea,任务管理器杀死进程,重新启动发现update完毕后就不会重复扫描建立索引了 方法五、项目文件过多

项目文件过多的情况会创建索引就会很慢,所以可以把文件数量很大的目录排除创建索引的范围就可以了。借图。

idea 一直scanning files to index的四种解决方法【idea 一直scanning files to index的四种解决方法】_ide_07

有用请点赞,养成良好习惯!

疑问、交流、鼓励请留言!

优秀不够,你是否无可替代

软件测试交流QQ群:721256703,期待你的加入!!

欢迎关注我的微信公众号:软件测试君

idea 一直scanning files to index的四种解决方法【idea 一直scanning files to index的四种解决方法】_ide_08

收藏 评论 分享 举报

上一篇:寻找写代码感觉(十一)之使用PageHelper实现后端分页

下一篇:Vue3学习(十一)之 table表格组件的使用



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有